package com.edyd.customer.api.request;

import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Pattern;

/**
 * Created by Administrator on 14-11-1.
 */
public class LoginForm {

    @NotEmpty
    @Pattern(regexp = "^1[3-8]{1}\\d{9}$", message = "请输入正确的手机号码！")
    private String userName;

    @NotEmpty
    private String password;

    private String iOSDeviceToken;

    private String androidDeviceToken;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getiOSDeviceToken() {
        return iOSDeviceToken;
    }

    public void setiOSDeviceToken(String iOSDeviceToken) {
        this.iOSDeviceToken = iOSDeviceToken;
    }

    public String getAndroidDeviceToken() {
        return androidDeviceToken;
    }

    public void setAndroidDeviceToken(String androidDeviceToken) {
        this.androidDeviceToken = androidDeviceToken;
    }
}
